//
//  KDCollectRequestTool.h
//  WangJingApp
//
//  Created by 魏强 on 17/10/9.
//  Copyright © 2017年 KDTech. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KDFavorParam.h"
#import "SVProgressHUD.h"
#import "KDBaseResult.h"

@class KDFavorTypeListResult;
@class KDDeleteNewsParam;
@class KDMoveFavorParam;
@class KDGetFavorListParam;
@interface KDCollectRequestTool : NSObject
/********************************  收藏请求 ********************************/

/**  添加收藏的请求 */
+ (void)addFavorMsgWithParam:(KDFavorParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;
/**  取消收藏的请求 */
+ (void)cancelFavorMsgWithParam:(KDFavorParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;

/********************************  收藏夹请求 ********************************/
/**  获取收藏夹列表的请求 */
+ (void)getFavorTypeListWithParam:(KDBaseParam *)param success:(void (^)(KDFavorTypeListResult *responseObejct))success failure:(void(^)(NSError *error))failure;

/**   获取对应收藏夹内的收藏列表的请求 */
+ (void)getFavorListWithParam:(KDGetFavorListParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;

/**  添加收藏夹 */
+ (void)addFavorTypeWithParam:(id)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;
/**  删除收藏夹 */
+ (void)deleteFavorTypeWithParam:(id)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;

/**  删除单条信息，硬插进来的，没地方放 */
+ (void)deleteNewsWithParam:(KDDeleteNewsParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;

/**   移动至新对应收藏夹的请求 */
+ (void)moveFavorWithParam:(KDMoveFavorParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;

/**  获取单条信息的信息 */
+ (void)getNewsWithParam:(KDMoveFavorParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;
@end
